<?php
class Core_Frontend_Component_Customer_Controller_Shop extends Core_Frontend_Share_Component_Controller {

    public function cardAction($id){
        $customer = App::getModel('customer/detail')->load($id)->updateClickCount();
        $pageTemplate = App::getModel('design/collection_page_template')
                ->filterByPageThemeId('8e88829c110b3200a121498ccf540098')
                ->filterByFileName('card')
                ->filterByEnabled(1)
                ->load()
                ->getFirstItem();
        $this->getVariables()->setData('page_template', $pageTemplate)
                             ->setData('current_customer', $customer);
        Kd_Web::getPage()->getNavigation()->addLabel('企业名片')
                                          ->addLabel($customer->getShopName());
        Kd_Web::getPage()->setTitle($customer->getShopName())
                ->setKeyword($customer->getBusinessScope());
        return $this->pageResult($pageTemplate);
    }
}

